import { Form, Input } from 'antd';

@Form.create({})
class Note extends React.PureComponent {
    constructor() {
        super()
    }
    render() {
        const { note, id } = this.props;
        const { getFieldDecorator } = this.props.form;
        return <Form >
            <Form.Item
                hidden={true}
            >
                {
                    getFieldDecorator('id', {
                        initialValue: id
                    })(<Input.TextArea />)
                }
            </Form.Item>
            <Form.Item
                label="备注"
            >
                {
                    getFieldDecorator('remark', {
                        initialValue: note
                    })(<Input.TextArea />)
                }
            </Form.Item>
        </Form>
    }
}

export default Note;